function $(_id){
	return document.getElementById(_id);
}
var _bf = document.bdfm;
var _gf = document.gform;
var defaultCheck = 1;
function sh(i) {
	$('lt'+defaultCheck).className = "";
	defaultCheck  = i;
	$('lt'+i).className = "active";
}
function clickCount(i) {


}
function bdSubmit() {
	var c = defaultCheck;
	var url;
	if(c == 1) {
		 url = "http://www.baidu.com/baidu";
		('bdi').innerHTML = '<input value="mengyaoren" name="tn" type="hidden">';
	}
	if(c == 2) {
		 url = "http://www.baidu.com/m";
		 $('bdi').innerHTML = '<input value="baidump3" name="tn" type="hidden"><input value="134217728" name="ct" type="hidden"><input value="hao123" name="sc" type="hidden">';
	}
	if(c == 3) {
		 url = "http://image.baidu.com/i";
		 $('bdi').innerHTML = '<input value="baiduimage" name="tn" type="hidden"><input value="201326592" name="ct" type="hidden"><input value="2" name="cl" type="hidden"><input value="-1" name="lm" type="hidden"><input value="hao123" name="fm" type="hidden">';
	}
	if(c == 4) {
		 url = "http://video.baidu.com/v";
		 $('bdi').innerHTML = '<input value="hao123" name="sc" type="hidden">';
	}
	if(c == 5) {
		url = "http://news.baidu.com/ns";
		$('bdi').innerHTML = '<input value="news" name="tn" type="hidden"><input value="hao123" name="sc" type="hidden">';
	}
	if(c == 6) {
		url = "http://map.baidu.com/m";
		$('bdi').innerHTML = '';
	}
	document.bdfm.action = url;
	return true;
}
function gss() {
	var c = defaultCheck;
	var url;
	if(c == 1) {
		 url = "http://www.google.com.hk/search";
		 ('tab').value = 'vw';
		 $('tbs').value = '';
	}
	if(c == 2) {
		 url = "http://www.google.cn/music/search";
	}
	if(c == 3) {
		 url = "http://images.google.com.hk/images";
	}
	if(c == 4) {
		url = "http://www.google.com.hk/search";
		$('tab').value = 'nv';
		$('tbs').value = 'vid:1';
	}
	if(c == 5) {
		url = "http://www.google.com.hk/search";
		$('tab').value = 'wn';
		$('tbs').value = 'nws:1';
	}
	if(c == 6) {
		url = "http://ditu.google.cn/maps";
		$('tab').value = 'vl';
	}
	document.gform.action = url;
	return true;
}